package tio.study.showcase.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.tio.core.intf.Packet;

/**
 * @author tanyaowu
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ShowcasePacket extends Packet {

	private static final long serialVersionUID = -2179013772615521161L;

	/**
	 * 消息头的长度 1+4
	 */
    public static final int HEADER_LENGHT = 5;

	public static final String CHARSET = "utf-8";

	/**
	 * 消息类型，其值在org.tio.examples.showcase.common.Type中定义
	 */
	private byte type;

	private byte[] body;

}
